//
//  InitDbTableExamOnLine.h
//  NursingManages
//
//  Created by Zhen Huang on 17/9/26.
//  Copyright © 2017年 huangzhen. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Model_Hr_Exam_Primary.h"
#import "Model_Hr_ExamAnswer.h"
#import "MyHttpUploadProtocl.h"
@interface InitDbTableExamOnLine : NSObject <MyHttpUploadProtocl>

-(NSString*) GetMainTableSql;
-(NSString*) GetDetailTableSql;

@property (nonatomic,strong) NSString *uploadUrl;

-(instancetype)inspectDetailModel:(Model_Hr_ExamAnswer *)inspectDetailArray;

-(instancetype)primary:(Model_Hr_Exam_Primary *)inspectModel;

-(NSString *)getScoreWithResid:(NSString *)res_id;
- (void)deleteTableWithHSaTableCode:(NSString *)ques_id;

//上传在线考试结果
-(void) startUpload:(NSString *)inspect_primary
     inspect_detail:(NSString *)inspect_detail
              block: (void(^)(NSDictionary *))callback;

-(NSMutableArray *) GetPrimaryUnUploadTableWithResid:(NSString *)res_id;

-(NSMutableArray *) GetDetailIUnUploadTableWithResid:(NSString *)res_id;


- (void)deleteTable:(NSString *)res_id;

- (void)deleteDetail:(NSString *)res_id;
//查得分
- (NSArray *) getDetailWithRight:(NSString *)res_id;


-(void)deleteDetailArray:(NSArray *)inspectDetailArray;

//显示所有的答题记录
- (NSMutableArray *)getALLPrimary;



//当开始答题时 先把所有的题目都存进明细表，答题时对应明细表去修改，能查询立即答题记录 并查看对错

- (void)insetInDetail:(NSArray *)array;

//考试提交时 查看是否有未做的题目

- (NSMutableArray *)unAnswerQuesWithRes_id:(NSString *)res_id;
@end

